﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="keywords" content="jQuery, Switchable, Tabs, Slide, Scrollable, UI, Plugin, Ajax" />
	<meta name="description" content="jQuery.Switchable是一款整合了Tabs、Slide、Scrollable等常见UI组件的jQuery插件。它有简单易用的API、可灵活配置的Configuration，支持自定义Effect，支持自主开发Plugin。" />
	<link href="../../css/css.css" rel="stylesheet" type="text/css" />
	<link href="../../css/demo.css" rel="stylesheet" type="text/css" />

	<!-- syntaxhighlighter -->
	<link href="../../../asset/styles/shCore.css" rel="stylesheet" type="text/css" />
	<link href="../../../asset/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />

	<link href="/asset/favicon.png" rel="icon" type="image/png" />
	<title>Demos | jQuery.Switchable</title>
	<script type="text/javascript" src="../../../asset/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../../js/jquery.switchable[all].min.js"></script>

	<!-- syntaxhighlighter -->
	<script type="text/javascript" src="../../../asset/scripts/shCore.js"></script>
	<script type="text/javascript" src="../../../asset/scripts/shBrushJScript.js"></script>
	<script type="text/javascript" src="../../../asset/scripts/shBrushXml.js"></script>

	<script type="text/javascript">
	$(function(){
		$(".tabs-trigger").switchable(".tabs-panel", { effect: "ajax" });
	});
	
	// syntaxhighlighter
	SyntaxHighlighter.config.clipboardSwf = "../asset/scripts/clipboard.swf";
	SyntaxHighlighter.all();
	</script>
</head>

<body>
<div id="header">
	<div id="logo"></div>
	<div id="nav">
		<a href="../../../switchable">Home</a>
		<a href="../../download.html">Download</a>
		<a href="../" class="current">Demos</a>
		<a href="http://t.sina.com.cn/jsw0528" title="Follow me on Sina" class="sina" target="_blank">Sina</a>
		<a href="http://twitter.com/jsw0528" title="Follow me on Twitter" class="twitter" target="_blank">Twitter</a>
	</div>
</div>

<div class="wrap clearfix">
	<h2>Loading contents with AJAX</h2>
	<br />
	
	<div class="tabs-trigger">
		<a href="ajax-content.html">First</a>
		<a href="ajax-content.html .red">Second</a>
		<a href="ajax-content.html .blue">Third</a>
	</div>
	<div class="tabs-panel"><!-- 此处内容AJAX加载 --></div>
	
	<h3>jQuery Code:</h3>
	<pre class="brush: js;">
	$(function(){
		$(".tabs-trigger").switchable(".tabs-panel", { effect: "ajax" });
	});
	</pre>

	<h3>HTML Code:</h3>
	<pre class="brush: html;">
	&lt;div class="tabs-trigger"&gt;
		&lt;a href="ajax-content.html"&gt;First&lt;/a&gt;
		&lt;a href="ajax-content.html .red"&gt;Second&lt;/a&gt;
		&lt;a href="ajax-content.html .blue"&gt;Third&lt;/a&gt;
	&lt;/div&gt;
	&lt;div class="tabs-panel"&gt;<!-- 此处内容AJAX加载 -->&lt;/div&gt;
	</pre>
</div>

<p class="copyright">
<script type="text/javascript" src="http://s122.cnzz.com/stat.php?id=1946178&web_id=1946178&show=pic1"></script>
&copy;2010 IlikejQuery.com
</p>
</body>
</html>
